<template>
  <div class="app-container">
    <mt-header fixed
               title="QQ">
      <span to="/"
            slot="left">
        <mt-button icon="back">返回</mt-button>
        <mt-button @click="handleClose"
                   v-if='false'>关闭</mt-button>
      </span>
      <mt-button icon="more"
                 slot="right"></mt-button>
    </mt-header>
    <router-view>11</router-view>
    <!-- tabber区域开始 -->
    <nav class="mui-bar mui-bar-tab">
      <router-link class="mui-tab-item"
                   to="/home">
        <!--  mui-active高亮样式 -->
        <span class="mui-icon mui-icon-home"></span>
        <span class="mui-tab-label">首页</span>
      </router-link>
      <router-link class="mui-tab-item"
                   to="/member">
        <span class="mui-icon mui-icon-contact"><span class="mui-badge">99</span></span>
        <span class="mui-tab-label">会员</span>
      </router-link>
      <router-link class="mui-tab-item"
                   to="/shopcar">
        <span class="mui-icon mui-icon-extra mui-icon-extra-cart"></span>
        <span class="mui-tab-label">购物车</span>
      </router-link>
      <router-link class="mui-tab-item"
                   to="/search">
        <span class="mui-icon mui-icon-search"></span>
        <span class="mui-tab-label">搜索</span>
      </router-link>
    </nav>
    <!-- tabber区域结束 -->
  </div>
</template>




<script>
</script>



//这里写的样式，要符合scss语法，并且，样式是当前组件私有的，不会成为全局的样式，也不会应用给子组件
<style lang='scss' scoped>
//顶部栏设置上边距
.app-container {
  padding-top: 40px;
}
</style>